import React, { Component } from 'react'
import { withRouter } from "react-router-dom"
import "./index.css"
import imgs from "../../assets/image/401.089007e7.gif"

class Error extends Component {
  render() {
    return (
      <div className="err">
        <div className="err-container">
          <div className="err-container-left">
            <img src={imgs} alt="" />
          </div>
          <div className="err-container-right">
            <h1>Oops!</h1>
            <h2>你没有权限访问该页面</h2>
            <p>如想访问，请联系你领导</p>
            <ul>
              <li onClick={()=>{
                this.props.history.push('/admin/home')
              }}>去首页</li>
              <li onClick={()=>{
                this.props.history.push('/admin/column', {openKeys: 'chart'})
              }}>看图表</li>
            </ul>
          </div>
        </div>
      </div>
    )
  }
}

export default withRouter(Error)
